let Service = require( 'node-windows' ).Service;
const path = require( "path" );

let svc = new Service({
	name: 'zxFileSync',    //服务名称
	description: '征信文件同步', //描述
	script: path.join( __dirname , "Synchronizer.js") //nodejs项目要启动的文件路径
});

svc.on('install', () => {
	svc.start();
});
svc.install();